﻿#ifndef INSTRUCTIONTURNTABLESETLOAD_H
#define INSTRUCTIONTURNTABLESETLOAD_H

#include "ScriptInstruction.h"

class InstructionTurnTableSetLoad :public ScriptInstruction
{
  Q_OBJECT
private://property
  bool loadMode=true;//ture代表负载模式，false代表空载模式
private:
  static const int byteArraySize=sizeof (loadMode);//除去指令类型标识符后的数据大小
public:
  explicit InstructionTurnTableSetLoad();
  InstructionTurnTableSetLoad(InstructionTurnTableSetLoad const& instructionTurnTableSetLoad);
  InstructionTurnTableSetLoad& operator=(InstructionTurnTableSetLoad const & instructionTurnTableSetLoad);
  virtual ~InstructionTurnTableSetLoad();
public:
  virtual QString toString()override;
  virtual QByteArray toByteArray() override;
  virtual InstructionTurnTableSetLoad* clone()override;
  static ScriptInstruction* fromByteArray1(char * const src,int size,int * offset);
public://geter and seter
  bool getLoadMode();
  InstructionTurnTableSetLoad* setLoadMode(bool loadMode);
};
#endif
